<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<script  type="text/javascript">
	function addhuiyuan(src)
	{
		window.top.frames['manFrame'].location.href = src
	}
	function updatehuiyuan(src)
	{
		window.top.frames['manFrame'].location.href = src
	}
	function deletehuiyuan(src)
	{
		confirm('确定要删除此会员吗？','提示',16)
		window.top.frames['manFrame'].location.href = src
	}
	</script>
<body>
	<table width="99%">
		<tr>
			<td width="100%" style="text-align:center;">	<input type="button" value="添加会员" onclick="addhuiyuan('<?php echo base_url(); ?>Huiyuan_add?ID=0&sign=add')"></input></td>
		</tr>
	</table>
	<table width="99%" border="1" align="center"  cellpadding="3" cellspacing="1" class="table_style">
	<tr>
		<td ></td>
		<td></td>
		<td width="42%">会员证号</td>
		<td width="46%">姓名</td>
	</tr>
<?php 
	foreach($results as $value)
	{
		echo "<tr>
				<td width=\"5px\"><input type=\"button\" value=\"修改\" onclick=\"updatehuiyuan('".base_url()."Huiyuan_add?ID=".$value->ID."&sign=update')\"></input></td>
			      <td width=\"5px\"><input type=\"button\" value=\"删除\" onclick=\"deletehuiyuan('".base_url()."Huiyuan/delete?ID=".$value->ID."')\"></input></td>
			      <td width=\"42%\">".$value->hy_huiyuan_no."</td>
			      <td width=\"46%\">".$value->hy_name."</td>
		      </tr>"; 
	}
?>
</body>                        
</html>   
	